package com.dgut.lab.mapper;

import com.dgut.lab.entity.User;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends MongoRepository<User,String> {
    User findByUsername(String username);
    List<User> findAllByRoleLike(String role);
}
